package com.jhhc.StormSurgeForecast.StormSurge.ServiceImpl;

import com.jhhc.StormSurgeForecast.AstronomicalTide.Dao.BDMS_FBC_OCEANMODEL_BMapper;
import com.jhhc.StormSurgeForecast.StormSurge.Pojo.FBC.BDMS_FBC_OCEANMODEL_B;
import com.jhhc.StormSurgeForecast.StormSurge.Service.BDMS_FBC_OCEANMODEL_BService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BDMS_FBC_OCEANMODEL_BServiceImpl implements BDMS_FBC_OCEANMODEL_BService {
    @Autowired
    private BDMS_FBC_OCEANMODEL_BMapper bdms_fbc_oceanmodel_bMapper;


    @Override
    public List<BDMS_FBC_OCEANMODEL_B> getModelInfos(Integer projectId, List<String> modelTypes) {
        return bdms_fbc_oceanmodel_bMapper.getModelInfos(projectId, modelTypes);
    }

    @Override
    public BDMS_FBC_OCEANMODEL_B getModelInfoByModelId(Integer projectId, String mdid) {
        return bdms_fbc_oceanmodel_bMapper.getModelInfoByModelId(projectId, mdid);
    }

    @Override
    public BDMS_FBC_OCEANMODEL_B selectByPid() {
        return bdms_fbc_oceanmodel_bMapper.selectByPid();
    }

    @Override
    public BDMS_FBC_OCEANMODEL_B selectByModelId(Integer pid,String modelId) {
        return bdms_fbc_oceanmodel_bMapper.selectByModelId(pid,modelId);
    }

    @Override
    public BDMS_FBC_OCEANMODEL_B getModelInfo(Integer pid, String modelId) {
        return bdms_fbc_oceanmodel_bMapper.selectByModelId(Integer.valueOf(pid), modelId);
    }


}
